package com.xjt.java.thread;

public class SleepDemo01 {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {

		int num=10;
		while (true) {

			System.out.println(num--);
			Thread.sleep(1000);
			if (num<=0) {
				break;
				
				
			}
			
		}

	}

}
